//
//  main.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Student.h"
#import "Teacher.h"
#import "Car.h"
#import "Plane.h"
#import "Worker.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
#if 0
        //第一个类 :学生类
        Student *stu1 =[[Student alloc] init];
        [stu1 setName:@"老陈"];
        [stu1 setGender:@"男"];
        [stu1 setAge:23];
        [stu1 setNumber:6501];
        [stu1 myPrint];
        
        Student *stu2 = [[Student alloc] initWithName:@"老白" withGender:@"女" withAge:21 withNumber:6502];
        [stu2 myPrint];
#endif
        
#if 0
      //第二个类 :老师类
        Teacher *tea1 = [[Teacher alloc] init];
        [tea1 setName:@"老周"];
        [tea1 setGender:@"男"];
        [tea1 setAge:23];
        [tea1 setNumber:1203];
        [tea1 myPrint];
        
        Teacher *tea2 = [[Teacher alloc] initWithName:@"老于" withGender:@"男" withAge:24 withNumber:1205];
        [tea2 myPrint];
        
#endif
        
#if 0
        //第三个类 :汽车类
        Car *car1 = [[Car alloc] init];
        [car1 setName:@"宝马X5"];
        [car1 setBrand:@"宝马"];
        [car1 setNumber:5675];
        [car1 setPrice:1700000];
        [car1 myPrint];
        
        
        Car *car2 = [[Car alloc] initWithName:@"悍马N7" withBrand:@"悍马" withNumber:9564 withPrice:2000000];
        [car2 myPrint];
        
        
#endif
        
#if 0
        //第四个类 :飞机类
        Plane *pla1 = [[Plane alloc] init];
        [pla1 setName:@"波音747"];
        [pla1 setBrand:@"波音公司"];
        [pla1 setTon:2000];
        [pla1 setAmount:300];
        [pla1 myPrint];
        
        Plane *pla2 = [[Plane alloc] initWithName:@"空客A380" withBrand:@"空客公司" withTon:5000 withAmount:1000];
        [pla2 myPrint];
#endif
        
#if 0
      //第五个类 :工人类
        Worker *work1 = [[Worker alloc] init];
        [work1 setName:@"老黑"];
        [work1 setGender:@"男"];
        [work1 setAge:20];
        [work1 setSalary:6000];
        [work1 myPrint];
        
        Worker *work2 = [[Worker alloc] initWithName:@"老于" withGender:@"男" withAge:24 withSalary:3000];
        [work2 myPrint];
        
#endif
        
    }
    return 0;
}
